/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package monitoring.beans.database;

/**
 *
 * @author Regulus
 */
public class TaxonomicElement {
    private Integer idTaxonomicElement;
    private ScientificName scientificName;
    private Order order;
    private Family family;
    private Genus genus;
    private SubGenus subGenus;
    private String vernacularName;
    private SpeciesName speciesName;
    private SubSpecies subSpecies;
    private Tribe tribe;
    private SubTribe subTribe;

    public SubTribe getSubTribe() {
        return subTribe == null? new SubTribe():subTribe;
    }

    public void setSubTribe(SubTribe subTribe) {
        this.subTribe = subTribe;
    }
    
    

    public Tribe getTribe() {
        return tribe == null? new Tribe(): tribe;
    }

    public void setTribe(Tribe tribe) {
        this.tribe = tribe;
    }
    

    public SubSpecies getSubSpecies() {
        return subSpecies == null? new SubSpecies():subSpecies;
    }

    public void setSubSpecies(SubSpecies subSpecies) {
        this.subSpecies = subSpecies;
    }

    
    public SpeciesName getSpeciesName() {
        return speciesName == null? new SpeciesName():speciesName;
    }

    public void setSpeciesName(SpeciesName speciesName) {
        this.speciesName = speciesName;
    }

    public Family getFamily() {
        return family == null? new Family():family;
    }

    public void setFamily(Family family) {
        this.family = family;
    }

    public Genus getGenus() {
        return genus == null? new Genus():genus;
    }

    public void setGenus(Genus genus) {
        this.genus = genus;
    }

    public Integer getIdTaxonomicElement() {
        return idTaxonomicElement;
    }

    public void setIdTaxonomicElement(Integer idTaxonomicElement) {
        this.idTaxonomicElement = idTaxonomicElement;
    }

    public Order getOrder() {
        return order == null? new Order():order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }

    public ScientificName getScientificName() {
        return scientificName == null? new ScientificName():scientificName;
    }

    public void setScientificName(ScientificName scientificName) {
        this.scientificName = scientificName;
    }

    public SubGenus getSubGenus() {
        return subGenus == null? new SubGenus():subGenus;
    }

    public void setSubGenus(SubGenus subGenus) {
        this.subGenus = subGenus;
    }

    public String getVernacularName() {
        return vernacularName;
    }

    public void setVernacularName(String vernacularName) {
        this.vernacularName = vernacularName;
    }
    

    public TaxonomicElement(Integer idTaxonomicElement, ScientificName scientificName, Order order, Family family, Genus genus, SubGenus subGenus, String vernacularName, SpeciesName speciesName, SubSpecies subSpecies, Tribe tribe, SubTribe subTribe)
    {
        this.idTaxonomicElement = idTaxonomicElement;
        this.scientificName = scientificName;
        this.order = order;
        this.family = family;
        this.genus = genus;
        this.subGenus = subGenus;
        this.vernacularName = vernacularName;
        this.speciesName = speciesName;
        this.subSpecies = subSpecies;
        this.tribe = tribe;
        this.subTribe = subTribe;
    }

    public TaxonomicElement() {
        this.scientificName = new ScientificName();
        this.order = new Order();
        this.family = new Family();
        this.genus = new Genus();
        this.subGenus = new SubGenus();
        this.vernacularName = "";
        this.speciesName = new SpeciesName();
        this.subSpecies = new SubSpecies();
        this.tribe = new Tribe();
        this.subTribe = new SubTribe();
    }
    
}
